home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: news.sprintlink.net!eskimo!news
- From: marksi@eskimo.com (Mark Simonton)
- Subject: Re: VC++ v.4.0 conversion problems
- X-Nntp-Posting-Host: tia1.eskimo.com
- Message-ID: <310296c9.15122432@eskinews.eskimo.com>
- Sender: news@eskimo.com (News User Id)
- Organization: Eskimo North (206) For-Ever
- X-Newsreader: Forte Agent .99c/16.141
- References: <4dls1n$ldp@eagle.novo.dk>
- Date: Sun, 21 Jan 1996 19:51:52 GMT
-
- Just a guess...
-
- On Thu, 18 Jan 1996 16:23:20 GMT, morb@novo.dk (Morten Brun) wrote:
-
- >I am having a lot of problems when compiling under v.4. as I am etting
- >
- >a lot of conversions errors due to the new behavior of v.4 like:
- >-----------------------------------------------------------------------------
- >LPWSTR lpszName;
- >
- >GetPrivateProfileStringA("x", "y", "",lpszName, sizeof(lpszName),
- >\\xxx.INI");
- ^ is there a '"' missing here?
- >
- >error c26664: cannot convert parm. 4 from unsigned short * to char *
- >---------------------------------------------------------------------------------
- >or
- >error C2446: '=' : no conversion from 'char *' to 'unsigned char *'
- >error C2664: 'wcstombs' : cannot convert parameter 1 from 'unsigned
- >char [32]' error C2664: 'mbstowcs' : cannot convert parameter 2 from
- >'unsigned char *' to 'const char *'
- >error C2664: 'ctime' : cannot convert parameter 1 from 'unsigned long
- >*' to 'const long *'
- >----------------------------------------------------------------------------------------
- >As I am e new to C++ and VC++ I have serious trouble in getting these
- >functions to work. Are there anybody which please could give me some
- >good ideas of how I without to much work can get my program to work ??
- >
- >Regards Morten
- >
- >
- >
- >Morten Brun
- >Novo Nordisk IT, Denmark
- >morb@novo.dk
- >
-
-